package com.mode.staticfactory;

public class KfcFactory {

    public static KFC get(String str) {
        if ("coke".equals(str)) {
            return new Coko();
        } else if ("hamburger".equals(str)) {
            return new Hamburger();
        }
        return null;
    }
}
